package com.ihd.ihardware.view.tzc.me.model;

import com.ihd.ihardware.api.HttpClient;
import com.ihd.ihardware.common.AppConstans;
import com.ihd.ihardware.pojo.CollectRes;

import cn.wowjoy.commonlibrary.http.BaseSubscriber;
import cn.wowjoy.commonlibrary.utils.RxSchedulerTransformer;
import cn.wowjoy.commonlibrary.viewmodel.BaseRepository;

public class CollectRepository extends BaseRepository {

    public void getCollectList() {
        addDisposable(HttpClient.getService().collectArticle()
                .compose(new RxSchedulerTransformer<>())
                .subscribeWith(new BaseSubscriber<CollectRes>(AppConstans.COLLECTART) {
                }));
    }
}
